package com.shop.loan.proxy;

import com.shop.loan.model.view.LoanOrderPoolByOverdue;
import com.shop.loan.util.LoanOrderUtil;
import org.springframework.stereotype.Service;
import xyz.erupt.annotation.fun.DataProxy;

import javax.annotation.Resource;
import java.util.Collection;
import java.util.Map;

@Service
public class LoanOrderPoolByOverdueProxy implements DataProxy<LoanOrderPoolByOverdue> {


    @Resource
    LoanOrderUtil loanOrderUtil;

//    @Override
//    public String beforeFetch(List<Condition> conditions) {
//        return loanOrderUtil.getOrderListBeforeFetch("LoanOrderByLoan", conditions);
//    }

    @Override
    public void afterFetch(Collection<Map<String, Object>> list) {
        loanOrderUtil.setOrderListData(list);
    }

}
